/**
 * Created by jihb on 5/3/16.
 */
Ext.define('JYnovel.view.system.RolePermissionView',{
    extend:'Ext.container.Viewport',
    layout:'border',
    initComponent:function () {
        Ext.applyIf(this,{
            items:[{
                xtype:'RoleGridPanel',
                region:'west',
                flex:1
            }]
        });
        this.callParent(arguments);
    }
});
Ext.define('JYnovel.view.system.RoleGridPanel',{
    extend:'Ext.grid.Panel',
    alias:'widget.RoleGridPanel',
    layout:'fit',
    border:false,
    // store:'',
    plugins: [{
        ptype: 'rowexpander',
        rowBodyTpl: new Ext.XTemplate(
            '<p style="color: gray">{remark}</p>'
        )
    }],
    initComponent:function () {
        Ext.applyIf(this,{
            columns:[{

            }],
            dockedItems:[{
                xtype:'toolbar',
                dock:'top',
                items:[{
                    text:'添加',
                    name:'roleAddBtn',
                    icon:ctx+'/images/icon/add.png'
                }]
            },{
                xtype: 'pagingtoolbar',
                // store: store,
                dock: 'bottom',
                displayInfo: true
            }]
        });
        this.callParent(arguments);
    }
});